#ifndef __EGLPBuffer_H__
#define __EGLPBuffer_H__


#include "U2GLESPreRequest.h"
#include "U2GLESPBuffer.h"
#include "U2EGLSupport.h"


U2EG_NAMESPACE_BEGIN


class EGLSupport;

class _U2GLESShare EGLPBuffer : public U2GLESPBuffer
{
protected:
    EGLSupport*     mGLSupport;
	::EGLDisplay    mGlDisplay;
	::EGLSurface    mEglDrawable;

public:
    EGLPBuffer(EGLSupport* glsupport, PixelComponentType format, size_t width, size_t height);
    void initEGLPBuffer();
    virtual ~EGLPBuffer();
};


U2EG_NAMESPACE_END


#endif
